/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question2.composition.CompositionConfig;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.dcpApplication.question2.composition.ComputerComp;
import za.ac.cput.dcpApplication.question2.composition.compositionImpl.Multimedia;

/**
 *
 * @author spheshie
 */
@Configurable
public class CompositionConfig {
    
    @Bean(name = "media")
    public ComputerComp computer(){
        return new Multimedia();
    }
    
    @Bean(name = "media")
    public Multimedia media(){
        return new Multimedia();
    }
    
}
